home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Dots & Pixels / headers / general.h < prev    next >
C/C++ Source or Header  |  1995-09-29  |  491b  |  19 lines

  1. #pragma once
  2. //
  3. // 941103: made 'report_error_and_exit' and 'CheckForError' static functions
  4. // (i.e. no longer static members of 'general'). Also fixed bug: every instance
  5. // of 'general' did install a new_handler. Now only the first one created does.
  6. //
  7. class general
  8. {
  9.     public:
  10.         general();
  11.  
  12.     private:
  13.         static int new_handler_installed;
  14. };
  15.  
  16. void report_error_and_exit( const char *message);
  17. void CheckForError( const int errorno, const char *text);
  18. void report_out_of_memory_and_exit();
  19.